using System;

namespace ClassEntities
{
    [Serializable]
    public class tblKyThi
    {
        private int stt;
        private string tenKyThi;
        private int idTruong;
        public tblKyThi()
        { }
        public tblKyThi(int stt, string tenKyThi, int idTruong)
        {
            this.stt = stt;
            this.tenKyThi = tenKyThi;
            this.idTruong = idTruong;
        }
        public int Stt
        {
            get { return this.stt; }
            set
            {
                if (value == null)
                    throw new Exception("stt not allow nullvalue.");
                this.stt = value;
            }
        }
        public string TenKyThi
        {
            get { return this.tenKyThi; }
            set { this.tenKyThi = value; }
        }
        public int IdTruong
        {
            get { return this.idTruong; }
            set { this.idTruong = value; }
        }
        public override string ToString()
        {
            return this.stt + "; " + this.tenKyThi + "; " + this.idTruong + "; ";
        }
        public override bool Equals(Object obj)
        {
            tblKyThi me = (tblKyThi)obj;
            bool ret = this.Stt.Equals(me.Stt);
            return ret;
        }
        public override int GetHashCode()
        {
            return this.Stt.GetHashCode();
        }

    }
}